<template>
    <div>
        <el-container>
            <el-header style="background-color: #4a4c5b;" >
                <div style="display:flex;justify-content:flex-end;align-items:center;height:100%;width:99%" >
                    <i class="iconfont icon1 pointer" style="font-size:25px;color:#fff"></i><span style="font-size:20px;color:#fff" class="pointer"> 返回首页</span>
                </div>
            </el-header>
            <el-main id="loginMainBox" style="padding-top: 20px;" class="imgCol">
                <el-card style="width:500px">
                   
                        <el-steps :active="activeStep" align-center>
                            <el-step title="确认邮箱账号" ></el-step>
                            <el-step title="前往邮箱确认"></el-step>
                            <el-step title="重新设置密码"></el-step>
                        </el-steps>
                        <div style="margin-top:40px"  class="imgCol">
                            <div style="width:400px">
                                 <el-form :model="form" status-icon :rules="rules" ref="form" >
                                            <el-form-item  prop="newCode">
                                                <el-input v-model="form.newCode" placeholder="请输入新密码...">
                                                    <i slot="suffix" class="iconfont iconfont icon3"></i>
                                                </el-input>
                                            </el-form-item>
                                            <el-form-item  prop="reCode">
                                                <el-input v-model="form.reCode" placeholder="请确认新密码...">
                                                    <i slot="suffix" class="iconfont iconfont icon3"></i>
                                                </el-input>
                                            </el-form-item>
                                            <el-form-item >
                                                <button  class="btnSubmit pointer" @click="submit">完成</button>
                                            </el-form-item>
                                        </el-form>
                            </div>
                        </div>
      
                </el-card>
            </el-main>
            <el-footer style="text-align: center;width: 100%;white-space: nowrap;color: #A7A7A7;font-size: 10px;line-height: 60px;">
				<div>www. xinzhitong. com版权所有新职通一新时期务工人员转 型升级助推者备案号粤ICP备10054973号-5</div>
			</el-footer>
        </el-container>
    </div>
</template>
<script>
import { regionDataPlus, CodeToText, TextToCode } from 'element-china-area-data'
export default {
    data(){
        return{
          
    
            activeStep:3,
            form:{
                newCode:'',
                reCode:'',
            },
            rules:{
                newCode:[
                    {
                         required: true,message: '请输入新密码', trigger: 'blur'
                    }
                ],
                reCode:[
                    {
                         required: true,message: '请确认新密码', trigger: 'blur'
                    }
                ]
            },
        }
    },
    watch:{
    },
    mounted(){
         var body = document.getElementById('loginMainBox');
			console.log(body)
			var height = document.documentElement.clientHeight - 120
			console.log(height.toString() + 'px')
			if(height<=700)
				height=700
			body.style.height = height.toString() + 'px'
			console.log(body.style.height)
    },
    methods:{
        submit(){
            this.$refs['form'].validate((valid) => {
                if (valid) {
                   console.log('forget ok');
                } else {
                    console.log('error submit!!');
                }
            });
        }
    }
}
</script>
<style>
.el-main,.el-header,.el-footer,.el-aside{
    padding: 0px;
}
#loginMainBox{
    background-image: url(../../assets/login/loginbgi.jpg);
    background-size: cover;
}
.imgCol{
    display: flex;
    justify-content: center;
    align-items: center;
}
.plainWords{
    color:rgb(105, 110, 125);
}
.pointer{
    cursor: pointer;
}
.qiYeLogo{
     border: 1px dashed #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 80px;
    width: 80px;
       white-space: nowrap;
}
.avatar-uploader-icon {
    font-size: 28px;
    color: #8c939d;
    width: 80px;
    height: 80px;
    line-height: 80px;
    text-align: center;
    white-space: nowrap;
  }
.btnSubmit{
    width: 400px;
    height: 40px;
    color: #FFF;
    background-color: #409EFF;
    border-color: #409EFF;
    border-style: none;
    border-radius: 5px;
}
</style>